027ca5dbca027c763eb4799eddac232fca358a64,framework/webapp/src/org/ofbiz/webapp/taglib/ContentUrlTag.java,ContentUrlTag,appendContentPrefix,#HttpServletRequest#Appendable#,60

Before Change


            return;
        }
        GenericValue webSite = WebSiteWorker.getWebSite(request);
        appendContentPrefix(webSite, request.isSecure(), urlBuffer);
    }

    public static void appendContentPrefix(GenericValue webSite, boolean secure, Appendable urlBuffer) throws IOException {

After Change


        GenericValue webSite = WebSiteWorker.getWebSite(request);
        String forwardedProto = request.getHeader("X-Forwarded-Proto");
        boolean isForwardedSecure = UtilValidate.isNotEmpty(forwardedProto) && "HTTPS".equals(forwardedProto.toUpperCase());
        boolean isSecure = request.isSecure() || isForwardedSecure;
        appendContentPrefix(webSite, isSecure, urlBuffer);
    }